mobileGetLaunchURL
Type
function
Summary
Returns the URL that was used to launch the application.
Syntax
get mobileGetLaunchURL()
Description
Returns the URL that was used to launch the application.
The mobileGetLaunchURL function returns the URL that was used to launch the application. This can be used to extract any parameters that may have been passed as part of the URL.
Custom URLs allow an application to be woken up when a specific URL is selected on a device. Your application registers any custom URL schemes it wishes to be woken up by with the operating system when first installed. These custom URL schemes can be set up in the standalone applications settings pane of LiveCode.
When one of the URLs is clicked on in either the browser or from within another application installed on the device, your application is woken up and sent a urlWakeUp message.
Examples
put mobileGetLaunchURL() into tLaunchURL
put mobileGetLaunchURL() into tLaunchURL
if tLauchURL is empty then
-- started manually
else
urlLaunchSetup
end if
Related
function: mobileGetLaunchData
message: urlWakeUp, launchDataChanged
Compatibility and Support
Introduced
LiveCode 5.5
OS
ios
android
Platforms
mobile